import request from "@/utils/request";

export function getInvbillmstrs(data) {
  return request({
    url: "/invbillmstr/getInvbillmstrs",
    method: "get",
    params: data
  });
}
export function getRInvbillmstrs(data) {
  return request({
    url: "/invbillmstr/getRInvbillmstrs",
    method: "get",
    params: data
  });
}
export function getMInvbillmstrs(data) {

  return request({
    url: "/invbillmstr/getMInvbillmstrs",
    method: "get",
    params: data
  });
}
export function getIInvbillmstrs(data) {
  return request({
    url: "/invbillmstr/getIInvbillmstrs",
    method: "get",
    params: data
  });
}
export function findByBillId(id) {
  return request({
    url: "/invbillmstr/findByBillId",
    method: "get",
    params: {
      billid: id
    }
  });
}

export function billConfirm(data) {
  return request({
    url: "/invbillmstr/billConfirm",
    method: "post",
    params: data
  });
}
export function billCheck(data) {
  return request({
    url: "/invbillmstr/billCheck",
    method: "post",
    params: data
  });
}
export function billPost(data) {
  return request({
    url: "/invbillmstr/billPost",
    method: "post",
    params: data
  });
}
export function updateBilldetl(data) {
  return request({
    url: "/invbillmstr/updateBilldetl",
    method: "get",
    params: data
  });
}
export function findByRecordid(data) {
  return request({
    url: "/invbillmstr/findByRecordid",
    method: "get",
    params: {
		"recordid":data
	}
  });
}

export function findByBillIdAndBarcode(billid,barcode) {
  return request({
    url: "/invbillmstr/findByBillIdAndBarcode",
    method: "get",
    params: {
      "billid":billid,
      "barcode":barcode
    }
  });
}

export function findLocationByBarcode(data) {
  return request({
    url: "/comitem/findLocationByBarcode",
    method: "get",
    params: {
      "barcode":data
    }
  });
}

export function getInLocation(data) {
  return request({
    url: "/invbillmstr/getInLocation",
    method: "get",
    params: {
      "barcode":data
    }
  });
}

export function getOutLocation(data,itemid) {
  return request({
    url: "/invbillmstr/getOutLocation",
    method: "get",
    params: {
      "barcode":data,
      "itemid":itemid
    }
  });
}